from rest_framework import serializers
from .models import Complaints

class ComplaintsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Complaints
        fields = '__all__'

class ComplaintsDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = Complaints
        fields = '__all__'
        depth = 2